package com.graduation.springbootinit.model.entity.ShopPart;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@TableName(value = "shop_part_messages")
@Data
public class Message implements Serializable {
    
    @TableId(type = IdType.AUTO)
    private Long id;
    
    private Long conversationId;
    
    private Long senderId;
    
    private Integer senderType;
    
    private String content;
    
    private Integer type;
    
    private Boolean isRead;
    
    private Long sequence;
    
    @TableField(fill = FieldFill.INSERT)
    private Date createdAt;
    
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updatedAt;
    
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}